package com.spbdx.studyspringboot.duty_chain.chain;

import com.spbdx.studyspringboot.duty_chain.annotation.Duty;
import com.spbdx.studyspringboot.duty_chain.entity.Product;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

/**
 * @Author: fan
 * @CreateTime 2025/1/1 21:42
 * @Description
 * @Version 1.0
 */
@Service
@Order(2)
@Duty(type = {ProductTypeConst.PRODUCT_BARGAIN_PRICE},order = 2)
public class ProductActivityHandler extends IHandler<Product,Boolean>{

    @Override
    public Boolean handle(Product product) {
        // TODO 具体的业务逻辑
        System.out.println(2);
        return super.handle(product);
    }
}
